package com.heima.springbootmybatis.controller;

import com.heima.springbootmybatis.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ControllerTest
{

    @GetMapping("/test")
   public String test()
   {
       return "Hello springboot";
   }

   @Autowired
   private User user;

    @GetMapping("/getuser")
    public User getUser()
    {
       return  user;
    }
}
